package solverdualization;

import ilog.concert.IloException;
import ilog.concert.IloLinearNumExpr;
import problem.SingleWareHouseProblem;
import uncertainty.UncertaintySet;

public class DualLSU extends DualSolver{

	public DualLSU(SingleWareHouseProblem p, UncertaintySet s) throws IloException{
		super(p, s);
	}

	@Override
	public void builModel() throws IloException {
		addObjFunction();
		
		for(int i = 0; i < dim; i++){
			addStorageRest(i,dim);
			for(int j = 0; j < i ; j++)
				addStorageRest(i,j);
		}
		
		for(int i = 0; i < dim; i++)
			addNonNegative(i);

		for(int i = 0; i < dim; i++){
			addCapacityRest(i, dim);
			for(int j = 0; j < i; j++)
				addCapacityRest(i, j);
		}
		
		for(int i = 0; i < dim; i++)
			addDualRest(i);
		
		//zeraFull(r, dim, dim);
		//zeraFull(y, dim, dim);
		//zeraFull(y3, dim, dim);
	}

}
